package com.frxuexi.mdm2206.view

import android.webkit.WebView
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.viewinterop.AndroidView
import com.frxuexi.mdm2206.myview.MyHBView
import com.frxuexi.mdm2206.myview.MyProgressView
import com.frxuexi.mdm2206.myview.MyZanView

lateinit var myHBView:MyHBView
@Composable
fun MessagePage() {

    DisposableEffect(key1 = "", effect = {
        onDispose {
//            myHBView.stop()
        }
    })




    AndroidView(modifier = Modifier.fillMaxSize(), factory = {
//        myHBView = MyHBView(it)
//        myHBView.start()
//        myHBView
//        val webView = WebView(it)
//        webView.loadUrl("https://export.shobserver.com/baijiahao/html/823643.html")
//        webView
        val view = MyZanView(it)
        view
    })

}